package com.sugar.subscribe.course.module.business.service.coachplan;

import java.util.*;
import javax.validation.*;
import com.sugar.subscribe.course.module.business.controller.admin.coachplan.vo.*;
import com.sugar.subscribe.course.module.business.controller.app.coachplan.vo.AppCoachPlanRespVO;
import com.sugar.subscribe.course.module.business.controller.app.coachplan.vo.AppCoachPlanSaveReqVO;
import com.sugar.subscribe.course.module.business.dal.dataobject.coachplan.CoachPlanDO;
import com.sugar.subscribe.course.framework.common.pojo.PageResult;
import com.sugar.subscribe.course.framework.common.pojo.PageParam;

/**
 * 教练课程方案 Service 接口
 *
 * @author Ysugar
 */
public interface CoachPlanService {

    /**
     * 创建教练课程方案
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createCoachPlan(@Valid CoachPlanSaveReqVO createReqVO);

    /**
     * 更新教练课程方案
     *
     * @param updateReqVO 更新信息
     */
    void updateCoachPlan(@Valid CoachPlanSaveReqVO updateReqVO);

    /**
     * 删除教练课程方案
     *
     * @param id 编号
     */
    void deleteCoachPlan(Long id);

    /**
    * 批量删除教练课程方案
    *
    * @param ids 编号
    */
    void deleteCoachPlanListByIds(List<Long> ids);

    /**
     * 获得教练课程方案
     *
     * @param id 编号
     * @return 教练课程方案
     */
    CoachPlanDO getCoachPlan(Long id);

    /**
     * 获得教练课程方案分页
     *
     * @param pageReqVO 分页查询
     * @return 教练课程方案分页
     */
    PageResult<CoachPlanRespVO> getCoachPlanPage(CoachPlanPageReqVO pageReqVO);

    Long appCreateCoachPlan(AppCoachPlanSaveReqVO createReqVO, Long coachId);

    void appUpdateCoachPlan(AppCoachPlanSaveReqVO updateReqVO, Long coachId);

    AppCoachPlanRespVO appGetCoachPlan(Long id, Long coachId);

    PageResult<AppCoachPlanRespVO> appGetCoachPlanPage(PageParam pageParam, Long coachId);
}